/*
 * Copyright 2000-2020 ALPHA LAB.Inc All Rights Reserved.
 */
package com.alphalab.moonlight.demo.dao.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import com.alphalab.framework.domain.BaseEntity;

/**
 * 访问统计表PO.
 * @author allen
 * @version 1.0.0 2020年4月5日
 */
@Entity
@Table(name = "DEMO_VISIT_COUNT")
public class VisitCount extends BaseEntity {
	
	/**
	 * 物理ID.
	 */
	private String id;
	
	/**
	 * 访问IP.
	 */
	private String ip;
	
	/**
	 * 访问客户端详情.
	 */
	private String agent;
	
	/**
	 * 访问时间.
	 */
	private Date createTime;

	@Id 
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name = "ID")	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "IP")	
	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	@Column(name = "AGENT")	
	public String getAgent() {
		return agent;
	}

	public void setAgent(String agent) {
		this.agent = agent;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

}
